
function f {
	case $1 in
		"a")
			echo "aaa"
			;;
		"b")
			echo "bb"
			;;
		*)
			echo "eee"
		;;
	esac
}


function ss {
echo "cccc"
	echo 100
}
b=`ss`
echo "$b---"

echo "error" >&2

#!/bin/bash
while getopts 'a:b:c:t:' OPT; do
    case $OPT in
        a)
			echo "$OPTARG"
			echo "$OPTARG"
			echo "$OPTARG"

			sleep 2
			;;
        b)
			echo "$OPTARG"
			sleep 2
			;;
        c)
			echo "$OPTARG"
			sleep 2
			;;
		t)
			echo "$OPTARG"
			sleep 2
		;;
        *)
            echo "Usage: `basename $0` [options] filename"
			;;
    esac
done
#shift $(($OPTIND - 1)):
